const Router = require("koa-router");

let router = new Router();

router.post("a",async (ctx ,next)=>{
    console.log(ctx.request.fields)
    ctx.body = "/a";
})

router.get("list",async (ctx ,next)=>{
    let res = await ctx.db.execute("select * from tests");
    ctx.body = res;
})


module.exports = router.routes();
